set -e

mkdir -p build-dbg

cd build-dbg

cmake .. -DCMAKE_BUILD_TYPE=DEBUG -DCMAKE_EXPORT_COMPILE_COMMANDS=ON

make